package com.znzz.service.impl;

import com.znzz.dao.UserDao;
import com.znzz.entity.User;
import com.znzz.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User queryUser(User user) {

        return userDao.queryUser(user);
    }

    @Override
    public User findUser(String username, String password) {
        return userDao.findUser(username,password);
    }



}
